package com.weiyuwqj.api.model.convert;

/**
 * Created by Administrator on 2016/3/25.
 */
public class CouponStatusConvert extends DefaultConvert {
    @Override
    public Object convert(Object val) {
        if(val == null)return "";
        if(!(val instanceof Integer)){
            return "";
        }
        int status = (Integer)val;
        if(status == 1){
            return "已使用";
        }else if(status == 2){
            return "未使用";
        }else if (status == 3) {
            return "过期";
        }else{
            return "其他";
        }

    }

}
